package com.lanzuo.pana.adapter.controller;

import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@Slf4j
@RequestMapping("/mes-open-server/api")
public class MesReportMockController {

    /**
     * 获取最新的文件内容
     *
     * @return
     */
    @PostMapping("/management/work-order-production/insert-all-production")
    public JSONObject mesReportMock(@RequestBody Map<String, Object> params) {
        log.info("receive message:\n {}", JSONUtil.toJsonPrettyStr(params));
        return new JSONObject().set("msg", "ok").set("code", 1);
    }
}
